package com.stormrage.entity.learn.view;

import java.io.Serializable;

/**
 * @Title: LeaStudentCourse.java
 * @Package com.stormrage.entity.learn.view
 * @Description: 学生课程关联 Entity 类
 * @author www.stormragetech.com
 * @date 2016年4月10日
 * @version V1.0
 */
public class LeaStudentCourse implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -8481959529181283371L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer stuId;

	private Integer courseId;

	private Integer ness;

	// ------------------------------- Fields -------------------------------

	public LeaStudentCourse() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStuId() {
		return stuId;
	}

	public void setStuId(Integer stuId) {
		this.stuId = stuId;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public Integer getNess() {
		return ness;
	}

	public void setNess(Integer ness) {
		this.ness = ness;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaStudentCourse instance(Integer stuId, Integer courseId, Integer ness) {
		LeaStudentCourse entity = new LeaStudentCourse();
		entity.setStuId(stuId);
		entity.setCourseId(courseId);
		entity.setNess(ness);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " stuId - " + stuId + " courseId - " + courseId + " ness - " + ness;
	}

}
